iommu: fix arm build after e9be34be5
authorWei Liu <wei.liu2@citrix.com>
Tue, 9 Oct 2018 18:58:12 +0000 (19:58 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 10 Oct 2018 10:26:33 +0000 (11:26 +0100)
commit5e00f02763f66dbbf0c86eee333c798fa8565a19
tree705d4d7c03152b68e5b9a16fdb281328cde4e058
parentcd395b1d69a773556d2af206b4ecbf56b33057ea
iommu: fix arm build after e9be34be5

The function iommu_share_p2m_table is used by both ARM and x86 but
hap_enabled macro is x86 only. Put the ASSERT under CONFIG_X86.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/iommu.c